#include "firstobject.h"
#include <QDebug>
#include <QThread>

FirstObject::FirstObject(QObject *parent) : QObject(parent)
{

}

FirstObject::~FirstObject()
{

}

void FirstObject::TaskByFirstObject()
{
    qDebug() << "FirstObject ThreadId is " << QThread::currentThreadId();
    for(int index = 1; index <=10 ; index++){
        qDebug() << "FirstObject Index is " << index;
        QThread::msleep(1000);
    }
    emit signalQuit();
}
